package org.travelfusion.xmlclient.ri.xobject.misc;

import java.io.Serializable;
import java.util.Map;

import com.google.gwt.user.client.rpc.IsSerializable;

public class XAirportInfo implements Serializable, IsSerializable {
	
	private static final long serialVersionUID = 1L;
	
	private String iataCode;
	
	private XCity city;
	
	private XCountry country;
	
	private Map<String, XAirportName> airportNamesMap;
	
	/**
	 * Returns the city.
	 * @return the city.
	 */
	public XCity getCity() {
		return city;
	}

	/**
	 * Sets the city.
	 * @param city the city.
	 */
	public void setCity(XCity city) {
		this.city = city;
	}

	/**
	 * Returns the country.
	 * @return the country.
	 */
	public XCountry getCountry() {
		return country;
	}

	/**
	 * Sets the country.
	 * @param country the country.
	 */
	public void setCountry(XCountry country) {
		this.country = country;
	}

	/**
	 * Returns the iataCode.
	 * @return the iataCode.
	 */
	public String getIataCode() {
		return iataCode;
	}

	/**
	 * Sets the iataCode.
	 * @param iataCode the iataCode.
	 */
	public void setIataCode(String iataCode) {
		this.iataCode = iataCode;
	}

	/**
	 * Returns the airportNamesMap.
	 * @return the airportNamesMap.
	 */
	public Map<String, XAirportName> getAirportNamesMap() {
		return airportNamesMap;
	}

	/**
	 * Sets the airportNamesMap.
	 * @param airportNamesMap the airportNamesMap.
	 */
	public void setAirportNamesMap(Map<String, XAirportName> airportNamesMap) {
		this.airportNamesMap = airportNamesMap;
	}
	
	@Override
	public String toString() {
		return "IataCode:" + getIataCode() + "; " + getAirportNamesMap().toString();
	}

}
